import ajax from '../untils/request.js'

// 获取搜索框联想建议
export const getSuggetion = (keyword) => {
  return ajax({
    url: '/app/v1_0/suggestion',
    method: 'GET',
    params: {
      q: keyword
    }
  })
}

// 获取搜索结果
export const getSearchResult = (page, keyword) => {
  return ajax({
    url: '/app/v1_0/search',
    method: 'GET',
    params: {
      page: page,
      q: keyword
    }
  })
}
